package com.chenbei.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.chenbei.system.domain.SysUser;
import com.chenbei.system.domain.SysUserRole;
import com.chenbei.system.domain.SysRole;
import com.chenbei.system.vo.req.SysRoleReq;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysUserRoleMapper extends BaseMapper<SysUserRole> {

    Page<SysUser> boundUsers(Page<SysUserRole> page, @Param("whereCondition") SysRoleReq sysRoleReq);

    List<SysRole> listByAdminUserId(@Param("adminUserId") Long adminUserId);
}
